(function(w){
	
	var location = need('location') ;
	$('#showPlace').on('touchstart',function(){
		location.open(function(list){
			var ids = [] ;
			var names = [] ;
			for(var i = 0 ; i < list.length ; i++ ){
				ids.push(list[i].id) ;
				names.push(list[i].name) ;
			}
			$('#showPlace').html(names.join(','));
			$('input[name=place]').val(ids.join(',')) ;
		}) ;
	}) ;
	var help = need('help') ;
	$('.dis-main').each(function(){
		var self = $(this) ;
		var body = self.find('.dis-body') ;
		var btn = self.find('.dis-arrow') ;
		var show = true ;
		btn.on('click',function(){
			if( show ){
				body.hide() ;
				help.prefix($(this),'transform','rotate(90deg)') ;
				show = false ;
			}else{
				body.show() ;
				help.prefix($(this),'transform','rotate(0deg)') ;
				show = true ;
			}
		}).trigger('click') ;
	}) ;

}(window));